<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="include/header_css :: header('新增-行政区域')"></head>
<body>
	<div id="dpLTE" class="container-fluid" v-cloak>
		<table class="form" id="form">
			<tr>
	            <td class="formTitle formRequired">区域代码</td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="区域代码" v-model="area.areaCode" isvalid="yes" checkexpession="NotNull">
	            </td>
        	</tr>
        	<tr>
	            <td class="formTitle formRequired">区域名称</td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="区域名称" v-model="area.name" isvalid="yes" checkexpession="NotNull">
	            </td>
        	</tr>
        	<tr>
	            <td class="formTitle formRequired">上级区域</td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="省级区域" v-model="area.parentName" isvalid="yes" checkexpession="NotNull" readonly="readonly">
	            </td>
        	</tr>
        	<tr>
	            <td class="formTitle">排序</td>
	            <td class="formValue">
					<input type="text" class="form-control" placeholder="排序" v-model="area.orderNum" isvalid="yes" checkexpession="NumOrNull">
	            </td>
        	</tr>
        	<tr>
				<td class="formTitle">层级</td>
				<td class="formValue">
					<label class="radio-inline">
						<input type="radio" name="layer" value="1" v-model="area.layer"/> 省级
					</label>
					<label class="radio-inline">
						<input type="radio" name="layer" value="2" v-model="area.layer"/> 地市
					</label>
					<label class="radio-inline">
						<input type="radio" name="layer" value="3" v-model="area.layer"/> 区县
					</label>
				</td>
			</tr>
        	<tr>
				<td class="formTitle">可用</td>
				<td class="formValue">
					<label class="radio-inline">
						<input type="radio" name="status" value="0" v-model="area.status"/> 禁用
					</label>
					<label class="radio-inline">
						<input type="radio" name="status" value="1" v-model="area.status"/> 正常
					</label>
				</td>
			</tr>
        	<tr>
	            <td class="formTitle formTitle-top">备注</td>
	            <td class="formValue">
					<textarea class="form-control" rows="4" placeholder="备注" v-model="area.remark"></textarea>
	            </td>
        	</tr>
		</table>
	</div>
	<div th:include="include/footer_js :: footer"></div>
	<script th:src="@{/statics/js/base/area/add.js}"></script>
</body>
</html>